package com.itheima.thread15;

import javax.lang.model.element.NestingKind;
import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        //创建阻塞队列对象
        ArrayBlockingQueue<String> arrayBlockingQueue = new ArrayBlockingQueue<>(1);
        //创建线程
        Foodier foodier = new Foodier(arrayBlockingQueue);
        Cookier cookier = new Cookier(arrayBlockingQueue);

        foodier.start();
        cookier.start();


    }
}
